ASurfaceTexture_acquireANativeWindow

Returns a reference to an ANativeWindow (i.e. the Producer) for this SurfaceTexture. This is equivalent to Java's: Surface sur = new Surface(surfaceTexture);

\param st A ASurfaceTexture reference acquired with ASurfaceTexture_fromSurfaceTexture() @return A reference to an ANativeWindow. This reference MUST BE released when no longer needed using ANativeWindow_release(). Failing to do so will result in leaked resources. nullptr is returned if \p st is null or if it's not an instance of android.graphics.SurfaceTexture

extern (C) nothrow @nogc
ANativeWindow*
ASurfaceTexture_acquireANativeWindow

Meta